Method of writing to a RAM with column clear

ABSTRACT

An SRAM that has a column clear function with only three vertical lines and six total lines across a cell and a method of operating that cell and an array of those cells. Instead of two bit lines per port and two access devices per port as in a traditional SRAM cell, one bit line and one access device per port is used. In addition, one additional bit line, one additional word line, and two devices in series are used to perform the column clear operation and complete a write operation. The cell is operated by performing write operations using a two step process. To perform a write, each cell in a row to be written is preset during a first step. Then, each cell that is to have a zero written to it is cleared using the additional bit line and additional word line to address the cells to be cleared. A column of cells may be cleared by enabling all the rows for clearing, then asserting column clear control signals for each of the columns in the array to be cleared.

FIELD OF THE INVENTION

[0001] The present invention relates generally to integrated circuits, and more particularly, to techniques and circuits for storing data in a static random access memory.

BACKGROUND OF THE INVENTION

[0002] Static random access memory (SRAM) is used in many electronic systems to store digital data without the need for periodic refresh. For example, the cache memory of many computer systems is made up of SRAM. A typical SRAM cell fabricated in a metal-oxide-semiconductor (MOS) process with one read/write port is often made from six transistors—four transistors to hold the data and two transistors per read/write port used as access devices. The access devices are typically controlled by “word lines” running in a first direction (for example, across a row or the horizontal direction when viewed oriented a certain way) and would dump/take data from “bit lines” running in another direction (for example, along a column or the vertical direction when viewed as described above). Therefore, a typical SRAM cell requires one word line running in the horizontal direction per row of SRAM cells and two bit lines running in the vertical direction per column of SRAM cells.

[0003] Some specialized applications, however, require an SRAM cell to have functionality in addition to a single read/write port. One such specialized application involves the storage of “physical hit vectors” as described in U.S. Pat. No. 6,014,732 granted to Naffziger which is hereby incorporated herein by reference. This application needs two read/write ports and the ability to clear an entire column of SRAM cells.

[0004] The addition of another read/write port and the ability to clear an entire column increases the number of word lines running horizontally and the number of bit lines running vertically. In particular, two additional bit lines running vertically for the second read/write port and a “clear” line also running vertically would be needed for each column of SRAM cells. Likewise, an additional word line would have to run horizontally across each row of SRAM cells. This brings the total number of lines running vertically over a given SRAM cell to five and the total number of lines running horizontally to two for a total of seven lines running across each SRAM cell.

[0005] This number of lines, especially lines running in the vertical direction, tends to grow the size of the SRAM cell significantly and reduce its frequency of operation. Accordingly, there is a need in the art for a two-ported SRAM cell with a column clear function that has fewer that five vertical lines and fewer that seven total lines across the cell.

SUMMARY OF THE INVENTION

[0006] The present invention provides an SRAM cell and array that has a column clear function with only three vertical lines and six total lines across a cell and a method of operating that cell and array of those cells. Instead of two bit lines per port and two access devices per port as in a traditional SRAM cell, one bit line and one access device per port is used. In addition, one additional bit line, one additional word line, and two devices in series are used to perform the column clear operation and complete a write operation.

[0007] The cell is operated by performing write operations using a two step process. To perform a write, each cell in a row to be written is preset during a first step. Then, each cell that is to have a zero written to it is cleared using the additional bit line and additional word line to address the cells to be cleared. A column of cells may be cleared by enabling all the rows for clearing, then asserting column clear control signals for each of the columns in the array to be cleared.

[0008] Other aspects and advantages of the present invention will become apparent from the following detailed description, taken in conjunction with the accompanying drawings, illustrating by way of example the principles of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

[0009]FIG. 1 is a schematic illustration of an SRAM with column clear functionality having six total lines across it.

[0010]FIG. 2 is a flowchart illustrating a method of writing data into a row of the SRAM cells shown in FIG. 1.

[0011]FIG. 3 is a flowchart illustrating a method of clearing at least one column of SRAM cells shown in FIG. 1.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012]FIG. 1 is a schematic illustration of an SRAM with column clear functionality having six total lines across it. In FIG. 1, a first, second, and third word lines WL1 102, WL2 104, WL3 106, respectively, run across the cell in a first direction. For illustration purposes, this first direction will be hereinafter referred to as the horizontal direction. A first, second, and third bit lines BL1 112, BL2 114, BL3 116, respectively, run across the cell in a second direction. For illustration purposes will be hereinafter referred to as the vertical direction. Also, when the SRAM cells of FIG. 1 are placed in a two dimensional array, the cells adjacent to each other in the horizontal direction will be referred to as being in a row and the cells adjacent to each other in the vertical direction will be referred to as being in a column. Finally, note that the total number of lines crossing the cell is six and the total number in the vertical direction is three. This compares favorably with the seven total and five vertical a traditional two-port cell with column clear needs.

[0013] P-channel field effect transistors (PFETs) 120 and 122 and N-channel field effect transistors (NFETs) 124 and 126 form a pair of cross-coupled CMOS inverters that act as a memory element of the SRAM cell shown in FIG. 1. This is for illustrative purposes only. Other type of memory elements could be used as well. For example, the invention could be used with cross-coupled NMOS inverters, a flip-flop formed from NAND or NOR gates, or other types of memory elements using different technologies such as magnetic random access memory cells (MRAM cells).

[0014] A first of the cross-coupled inverters is formed by PFET 120 and NFET 124. The input to this inverter is node BL and the output node BH. The source of PFET 120 is connected to the positive supply voltage. The drain of PFET 120 is connected to node BH which is connected to the gate of PFET 122, the gate of NFET 126, the drain of NFET 124, and the drain of NFET 140. The source of NFET 124 is connected to the negative supply voltage. The gates of both PFET 120 and NFET 124 are both connected to the drains of PFET 122 and NFET 126.

[0015] A second of the cross-coupled inverters is formed by PFET 122 and NFET 126. The input to this inverter is node BH and the output node BL. The source of PFET 122 is connected to the positive supply voltage. The drain of PFET 122 is connected to node BL which is connected to the gate of PFET 120, the gate of NFET 124, the drain of NFET 126, and the drains of NFETs 130 and 132. The source of NFET 126 is connected to the negative supply voltage. The gates of both PFET 122 and NFET 126 are both connected to the drains of PFET 120 and NFET 124.

[0016] NFET 130 is a first access device. The gate of NFET 130 is connected to word line WL1 102. The drain of NFET 130 is connected to bit line BL1 112. NFET 132 is a second access device. The gate of NFET 132 is connected to word line 104. The drain of NFET 132 is connected to bit line 114.

[0017] NFETs 140 and 142 form column clear logic that provides the capability to clear the cell when properly addressed by row and column. The gate of NFET 140 is connected to bit line BL3 116. The source of NFET 140 is connected to the drain of NFET 142. The gate of NFET 142 is connected to word line WL3 106. The source of NFET 142 is connected to the negative supply voltage.

[0018] To read the cell shown in FIG. 1, either, or both bit lines 112 and 114 are precharged and the precharging device turned off so that bit lines 112 or 114 are floating at a precharge level. Then, when h word line 102 and/or word line 104 are pulled high, one or both of access devices 130 and 132 are turned on, respectively. This allows the value stored by the memory element as output on node BL to charge or discharge bit lines 112 or 114. Bit lines 112 and 114 are charged or discharged depending upon the precharge level and the value on node BL. For example, if bit line 112 was precharged to the positive supply voltage and the memory element was driving BL low (i.e. at or near the negative supply voltage level), then bit line 112 would be discharged through access device 132 and the memory element. The lowered voltage level of bit line 112 could then be read by a sense amplifier on bit line 112. Another example is if bit line 112 was precharged to an intermediate value (i.e. not near the positive or the negative supply voltage levels) and the memory element was driving BL to a high (i.e. at or near the positive supply voltage level). In this case, bit line 112 would be charged through access device 132 and the memory element. This raised voltage level on bit line 112 could then be read by a sense amplifier on bit line 112. Note that since there are two access devices 130, 132 and two bit lines 112, 114 two reads can be accomplished simultaneously either from the same or different rows.

[0019] A process for writing to a row of SRAM cells shown in FIG. 1 is illustrated by a flowchart shown in FIG. 2. In a step 202 logical 1's are written into the entire row of cells that are being written. This is done by driving all the bit lines BL1 112 for the row low while the word line WL1 102 is active. This causes the memory element to hold a logical 0 on BL and a logical 1 on BH. Note that for the cell shown in FIG. 1, word lines WL1 102, WL2 104, WL3 106, and bit line BL3 116 are active when they are driven high (i.e. driven towards the positive supply voltage).

[0020] In a step 204, the row is enabled for clearing. This is done by activating WL3 106. To prevent a drive fight, when WL3 106 is activated, WL1 102 and WL2 104 should be deactivated.

[0021] In a step 206, the column clear signal for all cells in the row that are to store logical 0's are activated. This is done by activating BL3 116 for the columns corresponding to each cell in the row that is to store a logical 0. Accordingly, this causes the memory element for those cells to hold a logical 1 on BL and a logical 0 on BH.

[0022] A process for clearing a column of SRAM cells shown in FIG. 1 is illustrated by a flowchart shown in FIG. 3. In a step 302, all of the rows in the SRAM to be cleared are enabled for clearing. This is done by activating WL3 for all of the rows to be cleared. To clear an entire column, WL3 for all of the rows would be activated. To clear columns in only a subset of rows, then a subset of WL3 lines in the array would be activated.

[0023] In a step 304, the column clear signal is activated for the columns that are to be cleared. This is done by activating BL3 116 for the one or more columns to be cleared.

[0024] Although a specific embodiment of the invention has been described and illustrated, the invention is not to be limited to the specific form or arrangement of the parts so described and illustrated. The invention is limited only by the claims. 

What is claimed is:
 1. A method of writing to a RAM array with column clears, comprising: writing a first logic value to a first row of a plurality of RAM cells; and, asserting at least one of a plurality of column clear signals while a first clear enable signal is active for said first row of a plurality of RAM cells.
 2. The method of claim 1 further comprising: asserting a second clear enable signal for a second row of a plurality of RAM cells.
 3. The method of claim 1 wherein asserting said at least one of said plurality of column clear signals while said first clear enable signal is active stores a second logic value in each cell of said row of said plurality of RAM cells that has an asserted column clear signal.
 4. A method writing a plurality of memory elements, comprising: setting all the members of a row of an array of memory elements to a first logic state, said array of memory elements arranged into rows and columns; enabling said row to respond to column clear signals; and, clearing a subset of said row of an array of memory elements to a second logic state by asserting a plurality of column clear signals.
 5. The method of claim 4, further comprising: enabling a plurality of rows to respond to said column clear signals.
 6. The method of claim 5, further comprising: clearing a subset of columns of said plurality of rows to said second logic state by asserting a plurality of column clear signals.
 7. A method of writing to an array of memory cells arranged into rows and columns, comprising: driving data lines for each column of said array of memory cells to a first logic value; asserting a first enable line for a row of said array of memory cells thereby storing said first logic value into each of a plurality of memory cells in said row of said array of memory cells; asserting a second enable line for said row of said array of memory cells; and, asserting at least one column clear line for a column of said array of memory cells thereby storing a second logic value into at least one of said plurality of memory cells in said row of said array of memory cells.
 8. The method of claim 7 further comprising: asserting a third enable line for a second row of said array of memory cells thereby storing said first logic value into each of a second plurality of memory cells in said second row of said array of memory cells; and, asserting a fourth enable line for said second row of said array of memory cells.
 9. The method of claim 8 whereby said step of asserting at least one column clear line for a column of said array of memory cells thereby stores said second logic value into at least on of said second plurality of memory cells in said second row of said array of memory cells.
 10. A method of writing to an array of memory cells, said array being arranged into rows and columns of memory cells, comprising: writing a first logic state into all of the cells of a selected row; and, clearing at least one of said cells of said selected row to a second logic state.
 11. The method of claim 10 wherein said writing uses an access device and said clearing uses dedicated logic included as part of said memory cell.
 12. The method of claim 11 wherein said dedicated logic includes an enable line for each of said rows of memory cells and a clear line for each of said columns of memory cells. 